package com.arctic.coding.marvin.car;

import lejos.nxt.NXTRegulatedMotor;

public class MotorControl {
	
	private NXTRegulatedMotor motor;	
	
	public MotorControl(NXTRegulatedMotor motor) {
		
		if (motor == null) {
			throw new RuntimeException("Es muss ein Motor uebergeben werden !");			
		}
		
		this.motor = motor;
	}
	
	public NXTRegulatedMotor getMotor() {
		return motor;
	}

}
